<!-- Content -->
<div id="content">

    <!-- Content wrapper -->
    <div class="wrapper">

        <!-- Breadcrumbs line -->
        <div class="crumbs">
            <ul id="breadcrumbs" class="breadcrumb"> 
                <li><a href="#">Evaluación</a></li>
                <li class="active"><a href="#" >Aplicando Evaluación.</a></li>
            </ul>

        </div>
        <!-- /breadcrumbs line -->

        <!-- Page header -->
        <div class="page-header">
            <div class="page-title">
                <h5>Sistema de evaluación ASPI :: <?= $nombre_tipo_aspi ?></h5>
                <span>Evaluando a sucursal <?= ucwords(strtolower($sucursal)) ?></span>
            </div>
        </div>
        <!-- /page header -->


        <!-- Default wizard -->
        <div class="widget">
            <div class="navbar">
                <div class="navbar-inner">
                    <h6>Auditoría ASPI::<?= $categoria ?></h6>
                </div>
            </div>
            <form id="wizard1" method="post" action="<?= base_url('resultados/actualizar') ?>" class="form-horizontal row-fluid well">
                <?php
                $i = 0;
                foreach ($sub as $s) {
                    $i++;
                    ?>
                    <fieldset class="step" id="<?= "step$i" ?>">
                        <div class="step-title">
                            <i><?= $s->s_subcategoria ?></i>
                            <h5>Amabilidad</h5>
                            <span><?= $s->s_nombre ?></span>
                        </div>
                        <?php foreach ($resp[$s->s_subcategoria] as $p) { ?>
                            <div class="control-group">
                                <label class="span6" class="control-label"><?= ucfirst($p->p_pregunta) ?>.</label>
                                <div class="controls ">
                                    <span class="span2"><input readonly type="text" value="<?= $p->p_pp ?>" class="span12" />
                                        <span class="help-block align-center">PP</span>
                                    </span>
                                    <span class="span2"><input readonly type="text" value="<?= $p->p_pc ?>" class="span12" />
                                        <span class="help-block align-center">PC</span>
                                    </span>
                                    <span class="span2"><input type="number" name="pregunta[<?= $p->c_calificacion_id ?>]"  class="span12"  value="<?= $p->c_po ?>" min="0" max="<?= $p->p_pp ?>" />
                                        <span class="help-block align-center">PO</span>
                                    </span>
                                </div>
                            </div>
                        <?php } ?>
                        <div class="control-group">
                            <label class="span6" class="control-label">Penalización.</label>
                            <div class="controls ">
                                <span class="span2"><input type="number" name="penalizacion[<?= $subcatid[$s->s_subcategoria]->s_subcategoria_id ?>]" value="<?= $subcatid[$s->s_subcategoria]->cc_constante_control ?>" min="0" class="span12" />
                                    <span class="help-block align-center">Valor.</span>
                                </span>
                            </div>
                        </div>
                    </fieldset>
                <?php } ?>
                <div class="form-actions align-right">
                    <input class="btn" id="back-1" value="Back" type="reset" />
                    <input type="submit" class="btn btn-danger" id="next-1" value="Next">
                </div>
            </form>
        </div>
        <!-- /default wizard -->

    </div>
    <!-- /content wrapper -->

</div>
<!-- /content -->
